<template>
	<view class="buySuccess">
		<view class="icon">
			<i class='iconfont '>&#xe608;</i>
			<text>购买成功！</text>
		</view>
		<view class="btnGroup">
			<view class="back" @click="backHome">
				回首页
			</view>
			<view class="back viewOrder" @click="viewOrder">
				查看订单
			</view>
		</view>
		<view class="footer">
			<text class="title">温馨提示:</text>
			<view class="content">
				<view>· 购买合同经出品方签字生效后邮寄，请耐心等待</view>
				<view>· 收益将于影视剧上映后30日发放</view>
				<view>· 如有其它疑问，请拨打平台热线咨询：<text class="red" @tap="makePhoneCall">028-85081413</text></view>
			</view>
		</view>
		
	</view>
</template>

<script>
export default {
    data() {
        return {};
    },
		onLoad(e) {
			this.orderId  = e.id
		},
    methods: {
		 makePhoneCall: function() {
		    uni.makePhoneCall({
		        phoneNumber: '02885081413',
		        success: () => {
		            console.log('成功拨打电话');
		        }
		    });
		},
        backHome() {
            uni.reLaunch({
                url: '../project/index'

            });
        },
        viewOrder() {
           uni.navigateTo({
           	url: '../my/myinvestDetail?id='+this.orderId
           });
        }
    }
};
</script>

<style lang="less">
@import '../../common/icon.css';
.buySuccess {
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: auto;
    // background: #f4f4f4;
    .icon {
        flex-direction: column;
				justify-content:center;
        .iconfont {
            font-size: 150upx;
            color: #ff1268;
            margin: 180upx auto 60upx;
        }
        text {
            font-size: 30upx;
            color: #666666;
            text-align: center;
        }
    }
    .btnGroup {
        width: 76%;
        margin: 110upx auto 60upx;
        justify-content: space-between;
        .back {
            background: white;
            width: 262upx;
            height: 100upx;
            border-radius: 50upx;
            justify-content: center;
            align-items: center;
            color: #222222;
            font-size: 32upx;
            font-weight: 600;
        }
        .viewOrder {
            color: #ff1268;
            margin-left: 50upx;
        }
    }
    .footer {
        border-top: 1px solid #dddddd;
        flex-direction: column;
        margin: 30upx 52upx;
        box-sizing: border-box;
        color: #333333;
        font-size: 28upx;
        padding-top: 52upx;
        .title {
            margin-bottom: 16upx;
        }
        .content {
            flex-direction: column;
			view{
				display: block;
				line-height: 2;
				font-size: 26upx;
				.red{
					color: #FF1268;
				}
			}
			
        }
    }
}
</style>
